package com.ruoyi.buy.service;

import com.ruoyi.buy.domain.entity.PO.BuyPurchasePost;
import com.ruoyi.buy.domain.entity.buy0003.Buy0003AddInvAndItem;
import com.ruoyi.buy.domain.entity.buy0003.Buy0003AddPostAndItem;

import java.util.List;

/**
 * 采购邮寄Service接口
 * 
 * @author ruoyi
 * @date 2023-12-07
 */
public interface IBuyPurchasePostService 
{
    /**
     * 查询采购邮寄
     * 
     * @param id 采购邮寄主键
     * @return 采购邮寄
     */
    public BuyPurchasePost selectBuyPurchasePostById(Long id);

    /**
     * 查询采购邮寄列表
     * 
     * @param buyPurchasePost 采购邮寄
     * @return 采购邮寄集合
     */
    public List<BuyPurchasePost> selectBuyPurchasePostList(BuyPurchasePost buyPurchasePost);

    /**
     * 新增采购邮寄
     * 
     * @param buyPurchasePost 采购邮寄
     * @return 结果
     */
    public int insertBuyPurchasePost(BuyPurchasePost buyPurchasePost);

    /**
     * 修改采购邮寄
     * 
     * @param buyPurchasePost 采购邮寄
     * @return 结果
     */
    public int updateBuyPurchasePost(BuyPurchasePost buyPurchasePost);

    /**
     * 批量删除采购邮寄
     * 
     * @param ids 需要删除的采购邮寄主键集合
     * @return 结果
     */
    public int deleteBuyPurchasePostByIds(Long[] ids);

    /**
     * 删除采购邮寄信息
     * 
     * @param id 采购邮寄主键
     * @return 结果
     */
    public int deleteBuyPurchasePostById(Long id);

    public int savePostWithItem(Buy0003AddPostAndItem para);

    public int saveInvWithItem(Buy0003AddInvAndItem para);
}
